package online.chenke.jvm;

import org.openjdk.jol.info.ClassLayout;

public class TestOOM {
    public static void main(String[] args) {
        /*for(int i=0; i<10000_0000; i++) {
            byte[] b = new byte[1024 * 1024];
        }*/
        Object obj = new Object();
        /*synchronized (obj){

        }*/
        ClassLayout classLayout = ClassLayout.parseInstance(obj);
        System.out.println(classLayout.toPrintable());
    }
}
